/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package yinshi.javafile;

/**
 *
 * @author yinshi
 */
public class JavaFile {

    private String package_name;
    private String name;

    public JavaFile(String name) {
        this.name = name;
    }

    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("package ").append(package_name).append("\n");
        sb.append("public class ").append(name).append("{\n");
        sb.append("}\n");

        return sb.toString();
    }
}
